package com.mongdbtokuduswagger.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * 时间范围实体类
 * @author Daft_V
 */
@Data
@ApiModel
public class SwaggerTimeEntity {
    @ApiModelProperty(value = "开始时间",required = true,example = "2022-01-01")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "结束时间",required = true,example = "2022-01-01")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
